package com.angel.architecture.services.impl;

import java.util.Collection;

import com.angel.architecture.services.DataGeneratorService;
import com.angel.data.generator.base.DataGeneratorRunner;

/**
 *
 * @author William
 */
public class DataGeneratorServiceImpl extends GenericServiceImpl implements DataGeneratorService {

	public <T> Collection<T> runGenerator(DataGeneratorRunner runner) {
		Collection<T> entities = runner.generateData();
		runner.finalizeGenerator();
		return entities;
	}
}